<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>crudpage</title>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<p>
    <span></span>
</p>

<div th:if="${ not#lists.isEmpty(result)}">
    <table>
        <tr>
            <th>a</th>
            <th>b</th>
            <th>c</th>
        </tr>
        <tr th:each="each : ${result}">
            <td th:text="${each.a}"></td>
            <td th:text="${each.b}"></td>
            <td th:text="${each.c}"></td>
        </tr>
        <table>
</div>
<form th:action="@{/operate}" enctype="application/x-www-form-urlencoded" method="post">
    <label for="a">a:</label>
    <input type="text" id="a" name="a"/><br/>
    <label for="b">b:</label>
    <input type="text" id="b" name="b"/><br/>

    <label for="c">c:</label>
    <input type="text" id="c" name="c"/><br/>

    <input name="addOrDel" id="add" type="radio" value="add">
    <label for="add">添加</label>

    <label for="token"></label>
    <input name="token" id="token" type="text" th:value="${token}" hidden>

    <input name="addOrDel" id="del" type="radio" value="del">
    <label for="del">删除</label>
    <!--添加提交按钮-->
    <input type="submit" value="提交"/>

</form>
</body>
</html>